package com.example.xiaoxueqixiangmu.jiemian;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import com.example.xiaoxueqixiangmu.R;

public class TextDialog extends AlertDialog {
    private Context context;
    View nameDialog;

    protected TextDialog(Context context) {
        super(context,R.style.TextDialog);
        this.context=context;
    }
    public View getNameDialog(){
        return  nameDialog;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        LayoutInflater inflater=LayoutInflater.from(context);
        nameDialog=inflater.inflate(R.layout.name_dialog_layout,null);
        setView(nameDialog);
        super.onCreate(savedInstanceState);

    }
}
